package com.bestcem.xm.common.core.uitls;


import java.util.UUID;

/**
 * UUID工具类
 *
 * @author ympan <yuming.pan@idiaoyan.com>
 * @date 2021/11/25 16:36
 */
public class IdUtil {
    /**
     * uuid
     *
     * @return
     */
    public static String uuid() {
        return uuid(true);
    }

    /**
     * uuid
     *
     * @param deleteHyphen
     * @return
     */
    public static String uuid(boolean deleteHyphen) {
        String uuid = UUID.randomUUID().toString();
        return deleteHyphen ? uuid.replace("-", "") : uuid;
    }
}
    